﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Persistencia;

namespace PersistenciaImplementacion
{
    public class PersisImplem : IPersistencia
    {
        public void Create(Persistencia.ObjetoPersistible obj)
        {
            BrokerManager.GetInstance().GetBroker(obj).Create(obj);
        }

        public void Delete(Persistencia.ObjetoPersistible obj)
        {
            BrokerManager.GetInstance().GetBroker(obj).Delete(obj);
        }

        public void Update(Persistencia.ObjetoPersistible obj)
        {
            BrokerManager.GetInstance().GetBroker(obj).Update(obj);
        }

        public List<ObjetoPersistible> Select(Persistencia.ObjetoPersistible obj)
        {
            return BrokerManager.GetInstance().GetBroker(obj).Select(obj);
        }
    }
}
